/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classesMiolo;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Lauciano
 */
public class MapasLaudoAutorInternHosp {
    private HashMap<String, Character> tipoDocumento;
    private HashMap<String, Character> acidente;
    private HashMap<String, Character> vinculo;
    private static MapasLaudoAutorInternHosp instance = null;

    private MapasLaudoAutorInternHosp() {
        initTipoDocumento();
        initAcidente();
        initVinculo();
    }    
    
    public static MapasLaudoAutorInternHosp getInstance(){
        if(instance == null) instance = new MapasLaudoAutorInternHosp();
        return instance;
    }

    public HashMap<String, Character> getTipoDocumento() {
        return tipoDocumento;
    }
    
    public HashMap<String, Character> getAcidento() {
        return acidente;
    }
    
    public HashMap<String, Character> getVinculo() {
        return vinculo;
    }
    
    private void initTipoDocumento(){
        tipoDocumento = new HashMap<>();
        tipoDocumento.put("CNS", new Character('a'));
        tipoDocumento.put("CPF", new Character('b'));
        tipoDocumento.put("Grave", new Character('c'));
    }
    
    private void initAcidente(){
        acidente = new HashMap<>();
        acidente.put("Acidente de Trânsito", new Character('a'));
        acidente.put("Acidente Trabalho Típico", new Character('b'));
        acidente.put("Acidente Trabalho Trajeto", new Character('c'));
    }
    
    private void initVinculo(){
        vinculo = new HashMap<>();
        vinculo.put("Empregado", new Character('a'));
        vinculo.put("Empregador", new Character('b'));
        vinculo.put("Autônomo", new Character('c'));
        vinculo.put("Desempregado", new Character('d'));
        vinculo.put("Aposentado", new Character('e'));
        vinculo.put("Não Segurado", new Character('f'));
    }
}
